home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Digital Talk 4
/
Digital_Talk_04_1993-12-10_Digital_Talk_de_Side_B.d64
/
8. cursor editor
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
59 lines
10 data120,169,51,133,1,169,,133,251,133,253,169,208,133,252,169,48,133,254,160
20 data0,177,251,145,253,200,208,249,230,252,230,254,165,252,201,216,208,237,169
30 data55,133,1,88,96:forl=0to43:reads:poke49152+l,s:nextl:sys49152:
40 poke53272,28:poke53280,4:poke53281,7:print"[147][144]"spc(13)"digital talk":cn=94
50 printspc(13)"cursor editor":print" (w) by ford prefect freeware from dt "
55 gosub60:goto75
60 print" [176][192][192][192][192][192][192][192][192][174]":forl=0to7:print" [221]********[221]":nextl:
70 print" [173][192][192][192][192][192][192][192][192][189][145][145][145][145]":printspc(23)"_ - set cursor":printspc(23)"e - end"
72 printspc(23)"c - clear":printspc(23)"l - load":printspc(23)"s - save":return
75 q=12288:zn=cn*8:gosub250
80 p=1024+(40*(7+y))+(6+x):pokep,peek(p)+128:poke1364,cn:yp=peek(p)-128
90 geta$:ifa$=""thenify<7thenpokep,peek(p)-128:y=y+1:goto80
100 ifa$="[145]"thenify>0thenpokep,peek(p)-128:y=y-1:goto80
110 ifa$=""thenifx<7thenpokep,peek(p)-128:x=x+1:goto80
120 ifa$="[157]"thenifx>0thenpokep,peek(p)-128:x=x-1:goto80
130 ifa$=chr$(13)thengosub170:goto80
140 ifa$="_"thengosub270
150 ifa$="e"thenend
152 ifa$="c"thengosub260:goto80
154 ifa$="l"thengosub350:l$="":poke198,0:goto80
156 ifa$="s"thengosub300:s$="":poke198,0:goto80
160 goto90
170 ifpeek(p)=170thenpokep,46:pokeq+y+zn,peek(q+y+zn)-2^(7-x):return
180 pokep,42:pokeq+y+zn,peek(q+y+zn)or2^(7-x):return
250 forl=0to7:pokeq+l+zn,255:nextl:return
260 forl=0to7:pokeq+l+zn,0:nextl:forl=0to7:forr=0to7:poke1024+(l+7)*40+(6+r),46:
262 nextr:nextl:return
270 print"bitte warten ..."
271 fori=128to255:foru=0to7:
280 pokeq+i*8+u,peek(q+(i-128)*8+u)orpeek(q+u+zn):nextu:nexti:print" fertig ! "
290 fortp=0to1000:nexttp:print"[145][145] ":print" ":return
300 input" save - name ";s$:ifs$=""thenprint"[145] [145]":pokep,yp:return
305 f$=s$+",p,w":open1,8,2,f$:print#1,chr$(0);chr$(48);
310 formt=qtoq+2047:print#1,chr$(peek(mt));:nextmt:close1:
320 print"[145] [145]":pokep,42:return
350 input" load - name ";l$:ifl$=""thenprint"[145] [145]":pokep,yp:return
355 f$=l$+",p,r":open1,8,2,f$:get#1,no$,no$
360 formt=qtoq+2047:get#1,co$:ifco$=""thenpokemt,0:goto380
370 pokemt,asc(co$):
380 next:close1:print"[145] ":gosub250:print"[145][145][145][145][145][145][145][145][145][145][145][145][145]";
390 gosub60:pokep,42:return
400 :
401 :
402 :
403 :
404 :
405 :
406 :
407 :
408 :
409 :
410 rem zeichensatz wird bei jedem
420 rem start neu kopiert. vor dem
430 rem speichern '_' druecken !!!
440 :
450 rem gruss
460 :
470 rem ford prefect